#include <stdio.h>
void sum_tow_arr(int arr1[], int arr2[], int sum[], int len);
void show_arr(int arr[], int n);
int main(void)
{
    int arr1[4] = {1, 3, 5, 7};
    int arr2[4] = {2, 4, 6, 8};
    int sum[4];

    show_arr(sum, 4);
    sum_tow_arr(arr1, arr2, sum, 4);
    show_arr(sum, 4);

    return 0;
}

void sum_tow_arr(int arr1[], int arr2[], int sum[], int len)
{
    int i;
    
    for (i = 0; i < len; i++)
        sum[i] = arr1[i] + arr2[i];
    
    return;
}

void show_arr(int arr[], int n)
{
    int i;

    for (i = 0; i < n; i++)
        printf("arr[%d]=%d ", i, arr[i]);
    
    putchar('\n');
}